package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmNewsAuthDto;
import com.heima.model.wemedia.dtos.WmNewsDownUpDto;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.pojos.WmNews;

public interface WmNewsService extends IService<WmNews> {
    ResponseResult findList(WmNewsPageReqDto dto);

    ResponseResult submit(WmNewsDto dto);

    ResponseResult downOrUp(WmNewsDownUpDto dto);


    ResponseResult list_vo(WmNewsAuthDto dto);

    ResponseResult one_vo(Integer id);

    ResponseResult auth_fail(WmNewsAuthDto dto);

    ResponseResult auth_pass(WmNewsAuthDto dto);

    /**
     * 删除文章
     * @param id
     * @return
     */
    ResponseResult delNews(Long id);
}
